Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSE by implementing Flusher in responseWriter wrapper #655

Merged
merged 1 commit into from
May 6, 2019
Merged

Fix SSE by implementing Flusher in responseWriter wrapper #655

merged 1 commit into from
May 6, 2019

Conversation

gfloyd
Copy link
Contributor

@gfloyd gfloyd commented May 6, 2019

I noticed after upgrading to any version later than 1.5.8 that server-sent events stopped working. It looks like the responseWriter wrapper added in #470 does not implement the http.Flusher interface, so events are never flushed to the client.

Adding Flush() to the wrapper fixes the issue and server-sent events are working for me again.

@CLAassistant
Copy link

CLAassistant commented May 6, 2019

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@aaronhurt aaronhurt merged commit 6862237 into fabiolb:master May 6, 2019
@aaronhurt
Copy link
Member

Thank you, nice catch!

@holtwilkins holtwilkins mentioned this pull request Oct 4, 2019
@magiconair magiconair added this to the 1.5.12 milestone Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants